package com.fowo.api.model.third.inventory.info;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 第三方库存信息 导入导出辅助模型 */
@Getter
@Setter
public class ThirdInventoryInfoExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属库存明细")
  private String parentInventoryDetailOrderlistSku;

  @ExcelIgnore
  @ExcelProperty(value = "所属库存明细")
  private Long parentInventoryDetailOrderlist;

  @Size(max = 50, message = "可用量长度不能超过20")
  @ExcelProperty(value = "可用量")
  private Integer qtySellable;

  @ExcelProperty(value = "待上架库存")
  private Integer qtyPending;

  @ExcelProperty(value = "锁定量")
  private Integer qtyReserved;

  @ExcelProperty(value = "备货在途")
  private Integer qtyOnway;

  @Size(max = 50, message = "名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "名称")
  private String name;
}
